package com.dps.recommend.process;

import com.dps.metrics.annotation.CustomizedMetrics;
import com.dps.recommend.beans.DpsRequest;
import com.dps.recommend.metrics.DpsSenceResultTagMapper;
import com.dps.recommend.metrics.DpsSenceTagMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j(topic = "dpsRecLog")
public class DpsRecProcessor {

    @Autowired
    private DpsProcessor dpsProcessor;


    @CustomizedMetrics(customPrefix = "dps_sence_empty", tagMapper = DpsSenceTagMapper.class, resultTagMapper = DpsSenceResultTagMapper.class)
    public List process(DpsRequest recommendContext) {
        return dpsProcessor.process(recommendContext);
    }


}
